package com.bw.shop.adapter


import com.bumptech.glide.Glide
import com.bw.shop.R
import com.bw.shop.entity.cateEntity
import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseViewHolder

class CateAdapter: BaseQuickAdapter<cateEntity, BaseViewHolder>(R.layout.item_cate) {
    override fun convert(
        holder: BaseViewHolder,
        item: cateEntity
    ) {
        holder.setText(R.id.content,item.name)
        Glide.with(context).load(item.icon).into(holder.getView(R.id.icon))
    }
}